import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import dayjs from 'dayjs'

// 定义过滤器
Vue.filter('times', (value) => {
  return dayjs(value).format('YYYY-MM-DD HH:mm:ss')
})

Vue.config.productionTip = false



// 引入vant组件
import {
  Button,
  Toast,
  Cell,
  CellGroup,
  NavBar,
  Icon,
  Dialog,
  Field,
  ActionSheet,
  Tab,
  Tabs
} from 'vant'
// 使用组件
Vue.use(Button)
Vue.use(Toast)
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(NavBar)
Vue.use(Icon)
Vue.use(Dialog)
Vue.use(Field)
Vue.use(ActionSheet)
Vue.use(Tab)
Vue.use(Tabs)

// 引入初始化的样式
import './style/reset.less';

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
